x86-64/physdevop: reduce generated code duplication
authorJan Beulich <jbeulich@novell.com>
Fri, 8 Jul 2011 12:21:53 +0000 (13:21 +0100)
committerJan Beulich <jbeulich@novell.com>
Fri, 8 Jul 2011 12:21:53 +0000 (13:21 +0100)
commit6b2c9b33a0695050e0e123cd0d935a901d83a905
tree1b654591b3f95bc3e2cd47f43b559a777a0a8d47
parent71db85f47880bbfba2be1d91e473dcbdc8c73d32
x86-64/physdevop: reduce generated code duplication

At least all the helper functions can be used by both the native and
the compat-mode implementations, requiring their parameters to be
adjusted.

Additionally, rather than having the compat mode wrapper source file
blindly define the native structures to be replaced by the compat mode
ones, replace unnecessary (un-)definitions by layout match checks.

In a second step, do_physdev_op() could be split into a part that
needs
re-compilation for compat mode handling and one that can be used for
native and compat mode.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/physdev.c
xen/arch/x86/x86_64/physdev.c
xen/include/xlat.lst